function auto_scroll() {
    var url = window.location.href;
    var selector = PAGES.find(url).autoscroll_selector;

    if (selector) {
        $(document).scrollTop($(selector).position().top);
    } else {
        console.log("unknown selector for the url: " + url);
    }
}

read_option('douban_auto_scroll', function (key, value) {
    if (value) {
        auto_scroll();
    }
});